package com.example.flower_shop.service.usr;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.flower_shop.common.PageResult;
import com.example.flower_shop.entity.StoreCart;
import com.example.flower_shop.vo.cart.CartPageReq;
import com.example.flower_shop.vo.cart.CartReq;
import com.example.flower_shop.vo.cart.CartResp;
import jakarta.validation.Valid;

/**
 * @author zbxComputer
 * @description 针对表【sys_store_cart(购物车表)】的数据库操作Service
 * @createDate 2024-11-21 12:48:44
 */
public interface StoreCartService extends IService<StoreCart> {

    void batchDelete(Long[] ids);

    PageResult<CartResp> getCart(@Valid CartPageReq req);

    void insertOrUpdateCart(@Valid CartReq req);

    void updateCartDirectly(Long id, Integer num);
}
